package com.docMan.dao.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.Transient;


/**
 * Tcunit entity.
 *  @author MyEclipse Persistence Tools
 */
public class Tcunit  implements java.io.Serializable {

    // Fields    

     private Integer unitId;
     private String unitName;
     private String unitDescription;
     private Date createDate;
     private Date validFromDate;
     private Date validToDate;
     private Integer validFlag;
     private Integer seniorUnitId;
     private Integer disPlayOrder;
     private Integer priority;
     private Integer unitProperty;
     @Transient
     private Set<Tchuman> humans = new HashSet(0);
     @Transient
     private List<Tcunit> subTcunits=new ArrayList<Tcunit>();
    // Constructors

     
     
	/** default constructor */
    public Tcunit() {
    }

	public Set<Tchuman> getHumans() {
		return humans;
	}

	public void setHumans(Set<Tchuman> humans) {
		this.humans = humans;
	}

	/** minimal constructor */
    public Tcunit(Integer unitId) {
        this.unitId = unitId;
    }
    
    /** full constructor */
    public Tcunit(Integer unitId, String unitName, String unitDescription, Date createDate, Date validFromDate, Date validToDate, Integer validFlag, Integer seniorUnitId, Integer disPlayOrder, Integer priority, Integer unitProperty) {
        this.unitId = unitId;
        this.unitName = unitName;
        this.unitDescription = unitDescription;
        this.createDate = createDate;
        this.validFromDate = validFromDate;
        this.validToDate = validToDate;
        this.validFlag = validFlag;
        this.seniorUnitId = seniorUnitId;
        this.disPlayOrder = disPlayOrder;
        this.priority = priority;
        this.unitProperty = unitProperty;
    }

   
    // Property accessors
    
    public Integer getUnitId() {
        return this.unitId;
    }
    
    public List<Tcunit> getSubTcunits() {
		return subTcunits;
	}

	public void setSubTcunits(List<Tcunit> subTcunits) {
		this.subTcunits = subTcunits;
	}

	public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return this.unitName;
    }
    
    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitDescription() {
        return this.unitDescription;
    }
    
    public void setUnitDescription(String unitDescription) {
        this.unitDescription = unitDescription;
    }

    public Date getCreateDate() {
        return this.createDate;
    }
    
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getValidFromDate() {
        return this.validFromDate;
    }
    
    public void setValidFromDate(Date validFromDate) {
        this.validFromDate = validFromDate;
    }

    public Date getValidToDate() {
        return this.validToDate;
    }
    
    public void setValidToDate(Date validToDate) {
        this.validToDate = validToDate;
    }

    public Integer getValidFlag() {
        return this.validFlag;
    }
    
    public void setValidFlag(Integer validFlag) {
        this.validFlag = validFlag;
    }

    public Integer getSeniorUnitId() {
        return this.seniorUnitId;
    }
    
    public void setSeniorUnitId(Integer seniorUnitId) {
        this.seniorUnitId = seniorUnitId;
    }

    public Integer getDisPlayOrder() {
        return this.disPlayOrder;
    }
    
    public void setDisPlayOrder(Integer disPlayOrder) {
        this.disPlayOrder = disPlayOrder;
    }

    public Integer getPriority() {
        return this.priority;
    }
    
    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Integer getUnitProperty() {
        return this.unitProperty;
    }
    
    public void setUnitProperty(Integer unitProperty) {
        this.unitProperty = unitProperty;
    }
}